package com.powergisol.gis.util;


import java.io.*;
import java.util.Properties;

/**
 * 获取property文件内容
 */
public class PropertyUtil {

    public static String  propertyUtil(String propertiesPath, String setName) {

        try {
            Properties properties = new Properties();
            InputStream in = new BufferedInputStream(new FileInputStream(propertiesPath));
            properties.load(new InputStreamReader(in, "utf-8"));
            return properties.getProperty(setName);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }

}
